import request from '@/utils/request'

// 查询压机电缸设备列表
export function listPress_eco_device(query) {
  return request({
    url: '/system_setting/press_eco_device/list',
    method: 'get',
    params: query
  })
}

// 查询压机电缸设备详细
export function getPress_eco_device(ecoId) {
  return request({
    url: '/system_setting/press_eco_device/' + ecoId,
    method: 'get'
  })
}

// 新增压机电缸设备
export function addPress_eco_device(data) {
  return request({
    url: '/system_setting/press_eco_device',
    method: 'post',
    data: data
  })
}

// 修改压机电缸设备
export function updatePress_eco_device(data) {
  return request({
    url: '/system_setting/press_eco_device',
    method: 'put',
    data: data
  })
}

// 删除压机电缸设备
export function delPress_eco_device(ecoId) {
  return request({
    url: '/system_setting/press_eco_device/' + ecoId,
    method: 'delete'
  })
}

// 查询压机当前生产的检查框配置
export function getPressProductDataCheckConfig(data) {
  return request({
    url: '/system_setting/press_eco_device/getPressProductDataCheckConfig',
    method: 'post',
    data
  })
}
